import request from "@/utils/request.js";

//查询后台用户列表
export const getSysUserListService=(params)=>{
    return request({
        method:'get',
        url:'/user/sys/userInfo',
        params:params
    })
}

//查询用户角色信息
export const getRoleListService=()=>{
    return request({
        method:'get',
        url:'/user/roles'
    })
}

//修改后台用户信息
export const updateSysUserService=(user)=>{
    return request({
        method:'put',
        url:'/user/update',
        data:user
    })
}

//删除后台用户
export const deleteSysUserService=(id)=>{
    return request({
        method:'delete',
        url:'/user/sys/delete?id='+id
    })
}
